/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.srcptit.javatrainning.thupt.b1;

import java.util.Scanner;

/**
 *
 * @author Autumn
 */
public class bai4 {
    public static int n;
    public static void main(String args[]){
        Scanner sc=new Scanner(System.in);
        n=sc.nextInt();
        hienthi();
                                           }
    public static int nguyento(int x){
        for(int i=2;i<=Math.sqrt(x);i++)if(x%i==0)return 0;
        return 1;
                                      }
    public static void hienthi(){
        int i=2;
        while(n>0){if(nguyento(i)==1){System.out.print(i + " ");
                                       n--;
                                      }
                   i++;
                   }
        System.out.println();
                                 }
}
